package ccxz.biz.application.util;

import java.util.Random;

public class RandomUtil {

    public static int max() {
        Random random = new Random();
        // 生成范围在[12, 18]之间的随机整数
        return random.nextInt(7) + 12;
    }

    public static int index(int len) {
        Random random = new Random();
        // 生成范围在[0, len]之间的随机整数
        return random.nextInt(len);
    }
}
